﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MonitorModule.Models {
    /// <summary>
    /// 设备数据模型
    /// </summary>
    public class DeviceModel
        : INotifyPropertyChanged {

        public event PropertyChangedEventHandler? PropertyChanged;
        /// <summary>
        /// 设备监控项名称
        /// </summary>
        public string DeviceItem { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        //public double Value { get; set; }

        private double _Value;

        public double Value {
            get { return _Value; }
            set {
                _Value = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Value"));

            }
        }



    }
}
